package com.huixin.powermonitor.common;

import lombok.Data;

import java.util.List;

@Data
public class PageResult {
    private Long total;       // 总记录数
    private Integer pageNum;  // 当前页码
    private Integer pageSize; // 每页数量
    private Integer pages;    // 总页数
    private List<?> list;     // 当前页数据

    public PageResult() {}

    public PageResult(Long total, Integer pageNum, Integer pageSize, Integer pages, List<?> list) {
        this.total = total;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.pages = pages;
        this.list = list;
    }
}